<?php
    session_start();
    /**
     * Description:Clears the cache information of the logged-in user.
     */
    try {
        if (isset($_SESSION['uid'])) {
            session_unset();
            session_destroy();
            echo 'success';
        }else{
            echo 'no info';
        }
        
    } catch (Exception $e) {
        echo 'error' . $e->getMessage();
    }
?>